package com.ruoyi.im.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 聊天会话对象 css_chat_session
 *
 * @author ruoyi
 * @date 2024-10-18
 */
public class CssChatSession extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 聊天关系 */
    @Excel(name = "聊天关系")
    private Long linkId;

    /** 发送方 */
    @Excel(name = "发送方")
    private Long sendId;

    /** 接收方 */
    @Excel(name = "接收方")
    private Long receiveId;

    /** 未读数量 */
    @Excel(name = "未读数量")
    private Long unread;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setLinkId(Long linkId)
    {
        this.linkId = linkId;
    }

    public Long getLinkId()
    {
        return linkId;
    }
    public void setSendId(Long sendId)
    {
        this.sendId = sendId;
    }

    public Long getSendId()
    {
        return sendId;
    }
    public void setReceiveId(Long receiveId)
    {
        this.receiveId = receiveId;
    }

    public Long getReceiveId()
    {
        return receiveId;
    }
    public void setUnread(Long unread)
    {
        this.unread = unread;
    }

    public Long getUnread()
    {
        return unread;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("linkId", getLinkId())
            .append("sendId", getSendId())
            .append("receiveId", getReceiveId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("unread", getUnread())
            .append("status", getStatus())
            .toString();
    }
}
